package com.aa.activity;


import com.aa.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;

public class UserSettingActivity extends Activity implements OnClickListener{


	private ImageButton mbtnPersonInfo;
	private ImageButton mbtnDialSetting;
	private ImageButton mbtnMyAccount;
	private ImageButton mbtnSysSettting;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.user_setting);
		initView();
		
	}
	
	private void initView(){
		mbtnPersonInfo = (ImageButton)findViewById(R.id.btn_person_info);
		mbtnPersonInfo.setOnClickListener(this);
		mbtnDialSetting = (ImageButton)findViewById(R.id.btn_dial_setting);
		mbtnDialSetting.setOnClickListener(this);
		mbtnMyAccount = (ImageButton)findViewById(R.id.btn_my_account);
		mbtnMyAccount.setOnClickListener(this);
		mbtnSysSettting = (ImageButton)findViewById(R.id.btn_sys_settting);
		mbtnSysSettting.setOnClickListener(this);
		
	}

	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.btn_person_info:
			Intent _Intent1 = new Intent(UserSettingActivity.this,PerInfoActivity.class);
			startActivity(_Intent1);
			break;
		case R.id.btn_dial_setting:
			Intent _Intent2 = new Intent(UserSettingActivity.this,DialSettingActivity.class);
			startActivity(_Intent2);
			break;
		case R.id.btn_my_account:
			Intent _Intent3 = new Intent(UserSettingActivity.this,MyAccountActivity.class);
			startActivity(_Intent3);
			break;
		case R.id.btn_sys_settting:
			Intent _Intent4 = new Intent(UserSettingActivity.this,SysSettingActivity.class);
			startActivity(_Intent4);
		break;

		default:
			break;
		}
		
	}
	

	
	
	

}
